package csc.training.jsf2.entity;

import java.io.Serializable;

/**
 * 
 * @author hdang20
 *
 */
public class EmailInfo implements Serializable{
	private static final long serialVersionUID = -2095000562748736255L;
	private String sender;
	private String receiveDate;
	private String subject;
	// Not_Yet_Read,Read,Sent,Deleted
	private String status;
	private int id;
	
	public final static String NOT_YET_READ = "Not_Yet_Read";
	public final static String READ = "Read";
	public final static String SENT = "Sent";
	public final static String DELETED = "Deleted";
	
	public EmailInfo(int id, String sender,
			String receiveDate, String subject, String status) {
		this.id = id;
		this.sender = sender;
		this.receiveDate = receiveDate;
		this.subject = subject;
		this.status = status;
	}
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getSender() {
		return sender;
	}
	public void setSender(String sender) {
		this.sender = sender;
	}
	public String getReceiveDate() {
		return receiveDate;
	}
	public void setReceiveDate(String receiveDate) {
		this.receiveDate = receiveDate;
	}
	public String getSubject() {
		return subject;
	}
	public void setSubject(String subject) {
		this.subject = subject;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	
	public boolean isNotYetRead(){
		return status.equals(NOT_YET_READ);
	}
	
	

}
